import Vue from 'vue'
import Vuex from 'vuex'

import  edit   from './modules/edit'
import  user   from './modules/user'
import  list   from './modules/list'
import  detail   from './modules/detail'
import  com   from './modules/com'

import  product   from './modules/yewu/product'
import  global   from './modules/global';

//modules
// import permission   from './modules/permission'


Vue.use(Vuex);


import plugins from './plugins';


export default new Vuex.Store({

    // state,
    // actions,
    // getters,
    // mutations,
    plugins,
    modules: {
        edit,
        user,
        com,
        detail,
        list,
        product,
        global
        // 'module_permission':permission
    }

});

